Answer: 20 gallons. This can be solve by trial and error. Or by noticing that the quantity of wine sold is a multiple of three, where as the digital root of sum of all barrels is 2. Hence the beer barrel must have a digital root of 2 + 0,3,6 i.e. 2, 5, or 8. That is only true of 20 gallon barrel.